package com.tansun.easycare.rule.ruletest.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 规则测试数据表Entity
 * @author 规则测试数据表
 * @version 2018-08-10
 */
public class RuleTestdata extends RuleBaseEntity<RuleTestdata> {
	
	private static final long serialVersionUID = 1L;
	private String sid;		// sid
	private String relationId;		// ruletest关联ID
	private String logRelationid;		// 日志关联ID
	private String ruleParam;		// 规则参数
	private String projectCode;
	public RuleTestdata() {
		super();
	}

	public RuleTestdata(String id){
		super(id);
	}

	@Length(min=1, max=11, message="sid长度必须介于 1 和 11 之间")
	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}
	
	@Length(min=0, max=64, message="ruletest关联ID长度必须介于 0 和 64 之间")
	public String getRelationId() {
		return relationId;
	}

	public void setRelationId(String relationId) {
		this.relationId = relationId;
	}
	
	@Length(min=0, max=64, message="日志关联ID长度必须介于 0 和 64 之间")
	public String getLogRelationid() {
		return logRelationid;
	}

	public void setLogRelationid(String logRelationid) {
		this.logRelationid = logRelationid;
	}
	
	public String getRuleParam() {
		return ruleParam;
	}

	public void setRuleParam(String ruleParam) {
		this.ruleParam = ruleParam;
	}

	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}
	
}